<?php
	/**
	 *	KLF Framework
	 *
	 *	Written by Kristian Oye <kristianoye@gmail.com> on Oct 22, 2011
	 *	Copyright (C) 2010-2011
	 */
	namespace KLF\System\Errors
	{
		/**
		 *  Class KMethodException
		 *
		 *  This event fires when a non-existant method is called.
		 *
		 *  @package KLF\System\Errors
		 *  @access public
		 *  @author Kristian Oye <kristianoye@gmail.com>
		 *  @since 0.1
		 */
		use KLF\KCore;

		class KMethodException extends KException
		{
			public function __construct($methodName, $obj)
			{
				$className = get_class($obj);
				parent::__construct(KCore::FS("No such method '{methodName}' exists in class '{className}'",
					array('methodName' => $methodName, 'className' => $className)));
			}
		}
	}